<?php
/**
 * Created by PhpStorm.
 * User: shkj
 * Date: 2020/4/20
 * Time: 10:02
 */

namespace app\api\controller\v1;

use think\facade\Request;
class HomeCate extends Base
{
    private $obj;
    public function __construct() {

        $this->obj = model("homeCate");
    }

    public function select(){
        $this->obj->select();
    }

    public function add(){
        $data = Request::post();
        $this->obj->add($data);
    }

    public function detail(){
        $id = Request::param('id');
        $this->obj->detail($id);
    }

    public function delete(){
        $id = Request::param('id');
        $this->obj->del($id);
    }

    public function edit(){
        $data = Request::post();
        $this->obj->modify($data);
    }



}
?>